var app = getApp();
//获取应用实例
Page({
  data: {
    nvabarData: {
      showCapsule: 1, //是否显示左上角图标   1表示显示    0表示不显示
      title: '意见反馈', //导航栏 中间的标题
    },
    catalogs: [
      {
        "catalogName": "异常问题",
        "select": 1
      },
      {
        "catalogName": "用户体验",
        "select": 2
      },
      {
        "catalogName": "新功能建议",
        "select": 3
      }
    ],
    catalogSelect: 0,//判断是否选中
  },
  
  chooseCatalog:function(data){
    var that=this;
    that.setData({//把选中值放入判断值
      catalogSelect : data.currentTarget.dataset.select
    })
  },
  onLoad: function () {
    var that = this;
    wx.getSystemInfo({
      success: function (res) {
        that.setData({
          winWidth: res.windowWidth,
          winHeight: res.windowHeight
        });
      }
    });
  },
})
